package action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;

public class AdminExitAction extends ActionSupport {
	
	
	public String adminexit(){
		HttpServletRequest request = ServletActionContext.getRequest();
		HttpSession session = request.getSession();
		session.removeAttribute("admin_id");
		session.removeAttribute("admin_username");
		session.removeAttribute("teacherid");
		session.removeAttribute("teachername");
		
		//System.out.println("1111111111111");
		return SUCCESS;
	}

}
